<template>
	<view class="error-page">
		<image class="error-icon" src="@/static/icon_fault.png" mode=""></image>
		<view class="error-title">
			{{title}}
		</view>
		<view class="error-msg">
			{{msg}}
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title: '',
				msg: ''
			};
		},
		onLoad(options) {
			console.log(options)
			uni.hideLoading();
			if (options.code === '401') {
				this.title = '登录失效'
				this.msg = 'token过期,请重新进入应用'
			}
		}
	}
</script>

<style lang="less">
	.error-page {
		display: flex;
		flex-direction: column;
		align-items: center;
		padding-top: 100rpx;

		.error-icon {
			width: 144rpx;
			height: 144rpx;
			margin-bottom: 30rpx;
		}

		.error-title {
			font-size: 60rpx;
			font-weight: 600;
			margin-bottom: 20rpx;
		}

		.error-msg {
			font-size: 40rpx;
		}
	}
</style>